export const StarBoard = [
    {
        index: 0,       // 格子序号
        x: 85,       // 格子X轴
        y: 63,       // 格子Y轴
        angle: 270,       // 棋子朝向角度（顺时针方向）
        player: 3,        // 格子颜色
        chess: [],      // 该棋格上的棋子
    },
    {
        index: 1,
        x: 79,
        y: 65,
        angle: 270,
        player: 0,
        chess: [],
    },
    {
        index: 2,
        x: 73.5,
        y: 65,
        angle: 270,
        player: 1,
        chess: [],
    },
    {
        index: 3,
        x: 67.5,
        y: 63,
        angle: 270,
        player: 2,
        chess: [],
    },
    {
        index: 4,
        x: 63,
        y: 67.5,
        angle: 180,
        player: 3,
        chess: [],
    },
    {
        index: 5,
        x: 65,
        y: 73.5,
        angle: 180,
        player: 0,
        chess: [],
    },
    {
        index: 6,
        x: 65,
        y: 79,
        angle: 180,
        player: 1,
        chess: [],
    },
    {
        index: 7,
        x: 63,
        y: 85,
        angle: 180,
        player: 2,
        chess: [],
    },
    {
        index: 8,
        x: 57,
        y: 87,
        angle: 270,
        player: 3,
        chess: [],
    },
    {
        index: 9,
        x: 51.5,
        y: 87,
        angle: 270,
        player: 0,
        chess: [],
    },
    {
        index: 10,
        x: 46,
        y: 87,
        angle: 270,
        player: 1,
        chess: [],
    },
    {
        index: 11,
        x: 40.5,
        y: 87,
        angle: 270,
        player: 2,
        chess: [],
    },
    {
        index: 12,
        x: 35,
        y: 87,
        angle: 270,
        player: 3,
        chess: [],
    },
    {
        index: 13,
        x: 29.5,
        y: 85,
        angle: 0,
        player: 0,
        chess: [],
    },
    {
        index: 14,
        x: 27,
        y: 79,
        angle: 0,
        player: 1,
        chess: [],
    },
    {
        index: 15,
        x: 27,
        y: 73.5,
        angle: 0,
        player: 2,
        chess: [],
    },
    {
        index: 16,
        x: 29.5,
        y: 68,
        angle: 0,
        player: 3,
        chess: [],
    },
    {
        index: 17,
        x: 24.5,
        y: 63,
        angle: 270,
        player: 0,
        chess: [],
    },
    {
        index: 18,
        x: 18.5,
        y: 65,
        angle: 270,
        player: 1,
        chess: [],
    },
    {
        index: 19,
        x: 13,
        y: 65,
        angle: 270,
        player: 2,
        chess: [],
    },
    {
        index: 20,
        x: 7.5,
        y: 62.5,
        angle: 270,
        player: 3,
        chess: [],
    },
    {
        index: 21,
        x: 5.5,
        y: 57,
        angle: 0,
        player: 0,
        chess: [],
    },
    {
        index: 22,
        x: 5.5,
        y: 51.5,
        angle: 0,
        player: 1,
        chess: [],
    },
    {
        index: 23,
        x: 5.5,
        y: 46.5,
        angle: 0,
        player: 2,
        chess: [],
    },
    {
        index: 24,
        x: 5.5,
        y: 41,
        angle: 0,
        player: 3,
        chess: [],
    },
    {
        index: 25,
        x: 5.5,
        y: 35.5,
        angle: 0,
        player: 0,
        chess: [],
    },
    {
        index: 26,
        x: 7.5,
        y: 29.5,
        angle: 90,
        player: 1,
        chess: [],
    },
    {
        index: 27,
        x: 13,
        y: 27.5,
        angle: 90,
        player: 2,
        chess: [],
    },
    {
        index: 28,
        x: 18.5,
        y: 27.5,
        angle: 90,
        player: 3,
        chess: [],
    },
    {
        index: 29,
        x: 24.5,
        y: 29.5,
        angle: 90,
        player: 0,
        chess: [],
    },
    {
        index: 30,
        x: 29.5,
        y: 25,
        angle: 0,
        player: 1,
        chess: [],
    },
    {
        index: 31,
        x: 27,
        y: 19,
        angle: 0,
        player: 2,
        chess: [],
    },
    {
        index: 32,
        x: 27,
        y: 13.5,
        angle: 0,
        player: 3,
        chess: [],
    },
    {
        index: 33,
        x: 29,
        y: 7.5,
        angle: 0,
        player: 0,
        chess: [],
    },
    {
        index: 34,
        x: 35,
        y: 5.5,
        angle: 90,
        player: 1,
        chess: [],
    },
    {
        index: 35,
        x: 41,
        y: 5.5,
        angle: 90,
        player: 2,
        chess: [],
    },
    {
        index: 36,
        x: 46,
        y: 5.5,
        angle: 90,
        player: 3,
        chess: [],
    },
    {
        index: 37,
        x: 51.5,
        y: 5.5,
        angle: 90,
        player: 0,
        chess: [],
    },
    {
        index: 38,
        x: 57,
        y: 5.5,
        angle: 90,
        player: 1,
        chess: [],
    },
    {
        index: 39,
        x: 63,
        y: 7.5,
        angle: 180,
        player: 2,
        chess: [],
    },
    {
        index: 40,
        x: 65,
        y: 13.5,
        angle: 180,
        player: 3,
        chess: [],
    },
    {
        index: 41,
        x: 65,
        y: 19,
        angle: 180,
        player: 0,
        chess: [],
    },
    {
        index: 42,
        x: 63,
        y: 25,
        angle: 180,
        player: 1,
        chess: [],
    },
    {
        index: 43,
        x: 67.5,
        y: 29.5,
        angle: 90,
        player: 2,
        chess: [],
    },
    {
        index: 44,
        x: 73.5,
        y: 27.5,
        angle: 90,
        player: 3,
        chess: [],
    },
    {
        index: 45,
        x: 79,
        y: 27.5,
        angle: 90,
        player: 0,
        chess: [],
    },
    {
        index: 46,
        x: 85,
        y: 29.5,
        angle: 90,
        player: 1,
        chess: [],
    },
    {
        index: 47,
        x: 87,
        y: 35.5,
        angle: 180,
        player: 2,
        chess: [],
    },
    {
        index: 48,
        x: 87,
        y: 41,
        angle: 180,
        player: 3,
        chess: [],
    },
    {
        index: 49,
        x: 87,
        y: 46,
        angle: 180,
        player: 0,
        chess: [],
    },
    {
        index: 50,
        x: 87,
        y: 51.5,
        angle: 180,
        player: 1,
        chess: [],
    },
    {
        index: 51,
        x: 87,
        y: 57,
        angle: 180,
        player: 2,
        chess: [],
    },
    {
        index: 52,
        x: 79,
        y: 46,
        angle: 270,
        player: 0,
        chess: [],
    },
    {
        index: 53,
        x: 73.5,
        y: 46,
        angle: 270,
        player: 0,
        chess: [],
    },
    {
        index: 54,
        x: 68,
        y: 46,
        angle: 270,
        player: 0,
        chess: [],
    },
    {
        index: 55,
        x: 62.5,
        y: 46,
        angle: 270,
        player: 0,
        chess: [],
    },
    {
        index: 56,
        x: 57,
        y: 46,
        angle: 270,
        player: 0,
        chess: [],
    },
    {
        index: 57,
        x: 51.5,
        y: 46,
        angle: 270,
        player: 0,
        chess: [],
    },
    {
        index: 58,
        x: 46.2,
        y: 79,
        angle: 0,
        player: 1,
        chess: [],
    },
    {
        index: 59,
        x: 46.2,
        y: 73.5,
        angle: 0,
        player: 1,
        chess: [],
    },
    {
        index: 60,
        x: 46.2,
        y: 68,
        angle: 0,
        player: 1,
        chess: [],
    },
    {
        index: 61,
        x: 46.2,
        y: 62.5,
        angle: 0,
        player: 1,
        chess: [],
    },
    {
        index: 62,
        x: 46.2,
        y: 57.3,
        angle: 0,
        player: 1,
        chess: [],
    },
    {
        index: 63,
        x: 46.2,
        y: 51.5,
        angle: 0,
        player: 1,
        chess: [],
    },
    {
        index: 64,
        x: 13.3,
        y: 46,
        angle: 90,
        player: 2,
        chess: [],
    },
    {
        index: 65,
        x: 18.7,
        y: 46,
        angle: 90,
        player: 2,
        chess: [],
    },
    {
        index: 66,
        x: 24,
        y: 46,
        angle: 90,
        player: 2,
        chess: [],
    },
    {
        index: 67,
        x: 29.7,
        y: 46,
        angle: 90,
        player: 2,
        chess: [],
    },
    {
        index: 68,
        x: 35,
        y: 46,
        angle: 90,
        player: 2,
        chess: [],
    },
    {
        index: 69,
        x: 41,
        y: 46,
        angle: 90,
        player: 2,
        chess: [],
    },
    {
        index: 70,
        x: 46.2,
        y: 13.5,
        angle: 180,
        player: 3,
        chess: [],
    },
    {
        index: 71,
        x: 46.2,
        y: 18.7,
        angle: 180,
        player: 3,
        chess: [],
    },
    {
        index: 72,
        x: 46.2,
        y: 24.1,
        angle: 180,
        player: 3,
        chess: [],
    },
    {
        index: 73,
        x: 46.2,
        y: 29.5,
        angle: 180,
        player: 3,
        chess: [],
    },
    {
        index: 74,
        x: 46.2,
        y: 35,
        angle: 180,
        player: 3,
        chess: [],
    },
    {
        index: 75,
        x: 46.2,
        y: 41,
        angle: 180,
        player: 3,
        chess: [],
    },
    {
        index: 76,
        x: 92.5,
        y: 66.8,
        angle: 270,
        player: 0,
        chess: [],
    },
    {
        index: 77,
        x: 78.15,
        y: 78.35,
        angle: 270,
        player: 0,
        chess: [],
    },
    {
        index: 78,
        x: 78.15,
        y: 86.6,
        angle: 270,
        player: 0,
        chess: [],
    },
    {
        index: 79,
        x: 86.65,
        y: 78.35,
        angle: 270,
        player: 0,
        chess: [],
    },
    {
        index: 80,
        x: 86.55,
        y: 86.5,
        angle: 270,
        player: 0,
        chess: [],
    },
    {
        index: 81,
        x: 25.5,
        y: 92.5,
        angle: 0,
        player: 1,
        chess: [],
    },
    {
        index: 82,
        x: 5.8,
        y: 78.2,
        angle: 0,
        player: 1,
        chess: [],
    },
    {
        index: 83,
        x: 5.8,
        y: 86.5,
        angle: 0,
        player: 1,
        chess: [],
    },
    {
        index: 84,
        x: 14.1,
        y: 78.1,
        angle: 0,
        player: 1,
        chess: [],
    },
    {
        index: 85,
        x: 14.1,
        y: 86.4,
        angle: 0,
        player: 1,
        chess: [],
    },
    {
        index: 86,
        x: 0,
        y: 25.6,
        angle: 90,
        player: 2,
        chess: [],
    },
    {
        index: 87,
        x: 5.7,
        y: 5.8,
        angle: 90,
        player: 2,
        chess: [],
    },
    {
        index: 88,
        x: 5.7,
        y: 13.9,
        angle: 90,
        player: 2,
        chess: [],
    },
    {
        index: 89,
        x: 14.1,
        y: 5.8,
        angle: 90,
        player: 2,
        chess: [],
    },
    {
        index: 90,
        x: 14.1,
        y: 13.8,
        angle: 90,
        player: 2,
        chess: [],
    },
    {
        index: 91,
        x: 66.8,
        y: 0,
        angle: 180,
        player: 3,
        chess: [],
    },
    {
        index: 92,
        x: 78.3,
        y: 5.6,
        angle: 180,
        player: 3,
        chess: [],
    },
    {
        index: 93,
        x: 78.3,
        y: 14.1,
        angle: 180,
        player: 3,
        chess: [],
    },
    {
        index: 94,
        x: 86.55,
        y: 5.6,
        angle: 180,
        player: 3,
        chess: [],
    },
    {
        index: 95,
        x: 86.45,
        y: 14.1,
        angle: 180,
        player: 3,
        chess: [],
    },
]

// 航道，1p 17-29 2p 30-41 3p 42-3 4p 4-16
export const StarChannel = [[17, 30, 43, 4], [29, 42, 3, 16]]

export const StarRoute = [
    [76, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
        30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 52, 53, 54, 55, 56, 57],    // 红线
    [81, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
        40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 58, 59, 60, 61, 62, 63],  // 绿线
    [86, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0,
        1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 64, 65, 66, 67, 68, 69], // 黄线
    [91, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
        16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 70, 71, 72, 73, 74, 75]  // 蓝线
]

// 四个玩家的骰子位置
export const dicePosiston = [
    { x: 0.4, y: 0.8 },
    { x: -1.8, y: 0.8 },
    { x: -1.8, y: -1.2 },
    { x: 0.4, y: -1.2 },
]

// 棋子初始位置
export const homeIndex = [
    77, 78, 79, 80,
    82, 83, 84, 85,
    87, 88, 89, 90,
    92, 93, 94, 95
]

// 游戏数据
export const gameData = {
    // 游戏状态枚举：start、dice、fly、end；
    state: 'start',
    // 当前用户,0123
    currentPlayer: 0,
    // 骰子点数,0为未投掷
    dice: 0,
    // 回合数
    round: 0,
    // 当前点击的棋子，用于行棋
    currentStar: -1,
    // 当前选中的棋子,用于改变特效
    touchStar: -1,
}
export const chessData = [
    {
        index: 77,
        player: 0,
        // 棋子状态枚举：home、start、fly、end
        state: 'home'
    }, {
        index: 78,
        player: 0,
        state: 'home'
    }, {
        index: 79,
        player: 0,
        state: 'home'
    }, {
        index: 80,
        player: 0,
        state: 'home'
    },
    {
        index: 82,
        player: 1,
        state: 'home'
    }, {
        index: 83,
        player: 1,
        state: 'home'
    }, {
        index: 84,
        player: 1,
        state: 'home'
    }, {
        index: 85,
        player: 1,
        state: 'home'
    },
    {
        index: 87,
        player: 2,
        state: 'home'
    }, {
        index: 88,
        player: 2,
        state: 'home'
    }, {
        index: 89,
        player: 2,
        state: 'home'
    }, {
        index: 90,
        player: 2,
        state: 'home'
    },
    {
        index: 92,
        player: 3,
        state: 'home'
    }, {
        index: 93,
        player: 3,
        state: 'home'
    }, {
        index: 94,
        player: 3,
        state: 'home'
    }, {
        index: 95,
        player: 3,
        state: 'home'
    }
]

// TODO 没有默认导出或默认导出变量的话，会报错Build optimization failed: found page without a React Component as default export in pages/chessMap
export default function Test() {
    return
};